package org.budo.dubbo.protocol.http.exception.remoting;

import lombok.Getter;
import lombok.Setter;

/**
 * @author lmw
 */
@Getter
@Setter
public class MethodMissMatchException extends RemotingRuntimeException {
    private static final long serialVersionUID = 8391515305036658941L;

    private String requestUri;

    private String interfaceName;

    private String methodName;

    public MethodMissMatchException(String requestUri, String interfaceName, String methodName) {
        this.requestUri = requestUri;
        this.interfaceName = interfaceName;
        this.methodName = methodName;
    }

    @Override
    public String getMessage() {
        return "interface method miss match, requestUri=" + requestUri //
                + ", interfaceName=" + interfaceName //
                + ", methodName=" + methodName;
    }
}